package com.project.springboot.web;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description：测试demo
 * Created by 朱正磊 on 2019/3/8 0008 上午 11:04
 */
@RestController
@Slf4j
public class HelloController {

    /**
     * description：模拟GET请求，返回json格式数据
     * user 朱正磊
     * time 2019/3/8 0008 下午 1:46
     * @return
     */
    @GetMapping("/hello")
    public String hello() {
        return "Hello SpringBoot";
    }

}
